package com.kgc.collection.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kgc.collection.util.CwStatusUtil;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Refund {

    private int id;
    private String code;
    private String sourceCode;
    private int sourceId;
    private String sourceName;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date biliDate;

    private int proId;
    private String proName;
    private int uid ;
    private String userName;
    private int deptId;
    private String deptName;
    private String info;
    private int status;
    private String statusStr;

    private BigDecimal totalAmount;
    private BigDecimal settleAmount;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createDate;
    private int createId;
    private String createName;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date modiDate;
    private int modiId;
    private String modiName;

    private List<RefundDetail> list;

    @Override
    public String toString() {
        return "Refund{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", sourceCode='" + sourceCode + '\'' +
                ", sourceId=" + sourceId +
                ", sourceName='" + sourceName + '\'' +
                ", biliDate=" + biliDate +
                ", uid=" + uid +
                ", proId=" + proId +
                ", proName='" + proName + '\'' +
                ", userName='" + userName + '\'' +
                ", deptId=" + deptId +
                ", info='" + info + '\'' +
                ", status='" + status + '\'' +
                ", statusStr='" + statusStr + '\'' +
                ", totalAmount=" + totalAmount +
                ", settleAmount=" + settleAmount +
                ", createDate=" + createDate +
                ", createId=" + createId +
                ", createName='" + createName + '\'' +
                ", modiDate=" + modiDate +
                ", modiId=" + modiId +
                ", modiName='" + modiName + '\'' +
                ", list=" + list +
                '}';
    }

    public List<RefundDetail> getList() {
        return list;
    }

    public void setList(List<RefundDetail> list) {
        this.list = list;
    }

    public int getProId() {
        return proId;
    }

    public void setProId(int proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public int getSourceId() {
        return sourceId;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public Date getBiliDate() {
        return biliDate;
    }

    public void setBiliDate(Date biliDate) {
        this.biliDate = biliDate;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
        statusStr = CwStatusUtil.transStatusToStr(status);
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getSettleAmount() {
        return settleAmount;
    }

    public void setSettleAmount(BigDecimal settleAmount) {
        this.settleAmount = settleAmount;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getCreateId() {
        return createId;
    }

    public void setCreateId(int createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getModiDate() {
        return modiDate;
    }

    public void setModiDate(Date modiDate) {
        this.modiDate = modiDate;
    }

    public int getModiId() {
        return modiId;
    }

    public void setModiId(int modiId) {
        this.modiId = modiId;
    }

    public String getModiName() {
        return modiName;
    }

    public void setModiName(String modiName) {
        this.modiName = modiName;
    }
}
